#include <stdio.h>
#include <string.h>
#define N 6

struct jg {
	char number[8];
	int score;
};

int main() {
	struct jg l[N];
	int m, n = 0;
	for (m = 0; m < N; m++)
		scanf ("%s%d", l[m].number, &l[m].score);
	for (m = 0; m < N; m++) {
		if (l[n].score > l[m].score)
			n = m;
	}
	printf("number\tlowset score\n");
	printf("%s\t%d\n", l[n].number, l[n].score);
}

